from flask import Blueprint, render_template, session

index4 = Blueprint("index4",__name__)

# 蓝图上下文处理器
@index4.context_processor
def my_func():
    # 上下文处理器里边的返回值必须是字典类型
    return {"title":"论Python语言的学习难度","count": 2001}


@index4.context_processor
def my_func1():
    my_dict = {
        "title1": "论Python语言的学习难度1111",
        "count1": 2001111
    }
    return dict(my=my_dict)


@index4.route("/index-new2")
def my_index():

    return render_template("index4.html")